package com.mysql.study.service;

import com.mysql.study.Dao.GoodsTypeDao;
import com.mysql.study.entity.GoodsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class GoodsTypeService {
    @Autowired
    private GoodsTypeDao typeDao;

    @Transactional
    public List<GoodsType> AllGoodsType(){
        return this.typeDao.selectAllgoodsType();
    }
}
